package com.example.demo.bean;

import javax.imageio.ImageIO;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

/**
 * Created by czc-pual on 2019/1/5.
 */
public class BeanTest {
    public static void main(String[] args) throws IOException {
//        File picture = new File("F:/in.jpg");
        File picture = new File("F:/ab.jpg");
//        BufferedImage sourceImg = ImageIO.read(new FileInputStream(picture));
//        System.out.println(String.format("%.1f",picture.length()/1024.0));// 源图大小
//        System.out.println(sourceImg.getWidth()); // 源图宽度
//        System.out.println(sourceImg.getHeight()); // 源图高度
//        System.out.println(picture.delete());

    }



}




